package com.quanyan.stadium.entity;

import com.quanyan.common.Plugin.Page;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbGameRoundScoreExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbGameRoundScoreExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdIsNull() {
            addCriterion("game_round_id is null");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdIsNotNull() {
            addCriterion("game_round_id is not null");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdEqualTo(Integer value) {
            addCriterion("game_round_id =", value, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdNotEqualTo(Integer value) {
            addCriterion("game_round_id <>", value, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdGreaterThan(Integer value) {
            addCriterion("game_round_id >", value, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_round_id >=", value, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdLessThan(Integer value) {
            addCriterion("game_round_id <", value, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdLessThanOrEqualTo(Integer value) {
            addCriterion("game_round_id <=", value, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdIn(List<Integer> values) {
            addCriterion("game_round_id in", values, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdNotIn(List<Integer> values) {
            addCriterion("game_round_id not in", values, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdBetween(Integer value1, Integer value2) {
            addCriterion("game_round_id between", value1, value2, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameRoundIdNotBetween(Integer value1, Integer value2) {
            addCriterion("game_round_id not between", value1, value2, "gameRoundId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdIsNull() {
            addCriterion("game_event_team_id is null");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdIsNotNull() {
            addCriterion("game_event_team_id is not null");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdEqualTo(Integer value) {
            addCriterion("game_event_team_id =", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdNotEqualTo(Integer value) {
            addCriterion("game_event_team_id <>", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdGreaterThan(Integer value) {
            addCriterion("game_event_team_id >", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("game_event_team_id >=", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdLessThan(Integer value) {
            addCriterion("game_event_team_id <", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdLessThanOrEqualTo(Integer value) {
            addCriterion("game_event_team_id <=", value, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdIn(List<Integer> values) {
            addCriterion("game_event_team_id in", values, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdNotIn(List<Integer> values) {
            addCriterion("game_event_team_id not in", values, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdBetween(Integer value1, Integer value2) {
            addCriterion("game_event_team_id between", value1, value2, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGameEventTeamIdNotBetween(Integer value1, Integer value2) {
            addCriterion("game_event_team_id not between", value1, value2, "gameEventTeamId");
            return (Criteria) this;
        }

        public Criteria andGroupTypeIsNull() {
            addCriterion("group_type is null");
            return (Criteria) this;
        }

        public Criteria andGroupTypeIsNotNull() {
            addCriterion("group_type is not null");
            return (Criteria) this;
        }

        public Criteria andGroupTypeEqualTo(Byte value) {
            addCriterion("group_type =", value, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeNotEqualTo(Byte value) {
            addCriterion("group_type <>", value, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeGreaterThan(Byte value) {
            addCriterion("group_type >", value, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("group_type >=", value, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeLessThan(Byte value) {
            addCriterion("group_type <", value, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeLessThanOrEqualTo(Byte value) {
            addCriterion("group_type <=", value, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeIn(List<Byte> values) {
            addCriterion("group_type in", values, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeNotIn(List<Byte> values) {
            addCriterion("group_type not in", values, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeBetween(Byte value1, Byte value2) {
            addCriterion("group_type between", value1, value2, "groupType");
            return (Criteria) this;
        }

        public Criteria andGroupTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("group_type not between", value1, value2, "groupType");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Double value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Double value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Double value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Double value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Double value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Double> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Double> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Double value1, Double value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Double value1, Double value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andProductsIsNull() {
            addCriterion("products is null");
            return (Criteria) this;
        }

        public Criteria andProductsIsNotNull() {
            addCriterion("products is not null");
            return (Criteria) this;
        }

        public Criteria andProductsEqualTo(Integer value) {
            addCriterion("products =", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsNotEqualTo(Integer value) {
            addCriterion("products <>", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsGreaterThan(Integer value) {
            addCriterion("products >", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsGreaterThanOrEqualTo(Integer value) {
            addCriterion("products >=", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsLessThan(Integer value) {
            addCriterion("products <", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsLessThanOrEqualTo(Integer value) {
            addCriterion("products <=", value, "products");
            return (Criteria) this;
        }

        public Criteria andProductsIn(List<Integer> values) {
            addCriterion("products in", values, "products");
            return (Criteria) this;
        }

        public Criteria andProductsNotIn(List<Integer> values) {
            addCriterion("products not in", values, "products");
            return (Criteria) this;
        }

        public Criteria andProductsBetween(Integer value1, Integer value2) {
            addCriterion("products between", value1, value2, "products");
            return (Criteria) this;
        }

        public Criteria andProductsNotBetween(Integer value1, Integer value2) {
            addCriterion("products not between", value1, value2, "products");
            return (Criteria) this;
        }

        public Criteria andWinsIsNull() {
            addCriterion("wins is null");
            return (Criteria) this;
        }

        public Criteria andWinsIsNotNull() {
            addCriterion("wins is not null");
            return (Criteria) this;
        }

        public Criteria andWinsEqualTo(Integer value) {
            addCriterion("wins =", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotEqualTo(Integer value) {
            addCriterion("wins <>", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsGreaterThan(Integer value) {
            addCriterion("wins >", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsGreaterThanOrEqualTo(Integer value) {
            addCriterion("wins >=", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsLessThan(Integer value) {
            addCriterion("wins <", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsLessThanOrEqualTo(Integer value) {
            addCriterion("wins <=", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsIn(List<Integer> values) {
            addCriterion("wins in", values, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotIn(List<Integer> values) {
            addCriterion("wins not in", values, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsBetween(Integer value1, Integer value2) {
            addCriterion("wins between", value1, value2, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotBetween(Integer value1, Integer value2) {
            addCriterion("wins not between", value1, value2, "wins");
            return (Criteria) this;
        }

        public Criteria andFailsIsNull() {
            addCriterion("fails is null");
            return (Criteria) this;
        }

        public Criteria andFailsIsNotNull() {
            addCriterion("fails is not null");
            return (Criteria) this;
        }

        public Criteria andFailsEqualTo(Integer value) {
            addCriterion("fails =", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsNotEqualTo(Integer value) {
            addCriterion("fails <>", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsGreaterThan(Integer value) {
            addCriterion("fails >", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsGreaterThanOrEqualTo(Integer value) {
            addCriterion("fails >=", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsLessThan(Integer value) {
            addCriterion("fails <", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsLessThanOrEqualTo(Integer value) {
            addCriterion("fails <=", value, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsIn(List<Integer> values) {
            addCriterion("fails in", values, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsNotIn(List<Integer> values) {
            addCriterion("fails not in", values, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsBetween(Integer value1, Integer value2) {
            addCriterion("fails between", value1, value2, "fails");
            return (Criteria) this;
        }

        public Criteria andFailsNotBetween(Integer value1, Integer value2) {
            addCriterion("fails not between", value1, value2, "fails");
            return (Criteria) this;
        }

        public Criteria andTiesIsNull() {
            addCriterion("ties is null");
            return (Criteria) this;
        }

        public Criteria andTiesIsNotNull() {
            addCriterion("ties is not null");
            return (Criteria) this;
        }

        public Criteria andTiesEqualTo(Integer value) {
            addCriterion("ties =", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesNotEqualTo(Integer value) {
            addCriterion("ties <>", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesGreaterThan(Integer value) {
            addCriterion("ties >", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesGreaterThanOrEqualTo(Integer value) {
            addCriterion("ties >=", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesLessThan(Integer value) {
            addCriterion("ties <", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesLessThanOrEqualTo(Integer value) {
            addCriterion("ties <=", value, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesIn(List<Integer> values) {
            addCriterion("ties in", values, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesNotIn(List<Integer> values) {
            addCriterion("ties not in", values, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesBetween(Integer value1, Integer value2) {
            addCriterion("ties between", value1, value2, "ties");
            return (Criteria) this;
        }

        public Criteria andTiesNotBetween(Integer value1, Integer value2) {
            addCriterion("ties not between", value1, value2, "ties");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}